package org.moon.framework.sample.tenant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.moon.framework.autoconfigure.tenant.entity.TenantEntity;


/**
 * 用户
 * @author ninglong
 */
@Getter
@Setter
@TableName("sys_user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SysUserEntity extends TenantEntity {

	@TableField(exist=false)
	private static final long serialVersionUID = 6323074783496305512L;


    /** 用户名称 */
    private String userName;
    
    /** 手机号码 */
    private String phoneNumber;

    /** 用户性别 */
    private Integer sex;
    
    /** 密码 */
	@JsonIgnore
	private String password;
	
	/** 头像 */
	private String avatar;
	
	/** 个性签名 */
	private String remark;
	
	/**0-正常，1-冻结*/
	private Integer status;
}